#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from robyn.responses import FileResponse
from robyn.types import JSONResponse
from typing import Any, Optional

class CustomBaseResponse(JSONResponse):
    """自定义响应
    """
    def __init__(
        self,
        msg: Optional[str] = None,
        data: Optional[Any] = None,
        code: int = 200,
        **kwargs
    ) -> None:
        super().__init__(code=code, msg=msg, data=data, **kwargs)